import { defineStore } from "pinia";

const lyricTime =  defineStore('lyric', {
    state: () => {
        return {
            lyrics: 0,
            progress: 0
        }
    },
    actions: {
        changeLyrics(value: number, progress: any) {
            this.lyrics = value
            this.progress = progress.toFixed(1)
        }
    }
})

export default lyricTime
